package com.nandi.emergencyinspection

import org.greenrobot.eventbus.EventBus

/**
 * @创建者: qingsong
 * @创建时间: 2021/3/30 19:36
 * @描述:
 */
class UpdateListEvent<T> {
    var code: Int = 0
        private set
    var data: T? = null

    constructor() {

    }

    constructor(code: Int) {
        this.code = code
    }

    constructor(code: Int, data: T) {
        this.code = code
        this.data = data
    }

    fun send() {
        EventBus.getDefault().post(this)
    }
}